Skip to content

Changes to use word-based bitwise processing for slot updates#3539

Open
omanges wants to merge 2 commits intovalkey-io:unstablefrom
omanges:optimise_slot_migration
Open

Changes to use word-based bitwise processing for slot updates#3539
omanges wants to merge 2 commits intovalkey-io:unstablefrom
omanges:optimise_slot_migration

Conversation

@omanges
Copy link
Copy Markdown
Contributor

@omanges omanges commented Apr 20, 2026

Refactor clusterUpdateSlotsConfigWith to iterate over slot bitmaps using 64-bit words instead of bit-by-bit. This reduces loop iterations from 16,384 to 256, significantly lowering CPU overhead during gossip and topology updates.

@omanges omanges force-pushed the optimise_slot_migration branch 2 times, most recently from fa52212 to 2ca1d60 Compare April 21, 2026 06:08
Signed-off-by: Omkar Mestry <om.m.mestry@gmail.com>
@omanges omanges force-pushed the optimise_slot_migration branch from 2ca1d60 to 4639d4c Compare April 21, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant